//
//  NSObject+HDGoodsCollectManager.h
//  app
//
//  Created by D on 15/6/19.
//  Copyright (c) 2015年 hdaren. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HDGoodsCollectResult.h"

@class HZRemoteResult;

@interface  HDGoodsCollectManager : NSObject

+(instancetype)shareManager;

- (void)loadOwnerGoodsListWithParams:(NSDictionary *)params result:(HDGoodsCollectResult *)remote Refresh:(NSString*)refresh;
- (void)loadMoreOwnerGoodsListWithParams:(NSDictionary *)params result:(HDGoodsCollectResult *)remote Refresh:(NSString*)refresh;


- (BOOL)fmdbIncludeFromGoodsList;
- (BOOL)fmdbIncludeDataFromGoodsList;
- (BOOL)shouldRefreshGoodsListData;
//删除收藏
-(void)updataAndDeleteToDB:(NSString*)product_id;
//从表中取出数据
- (NSMutableArray *)arrayFromFmdbGoodsList;
//判断是否已收藏
-(BOOL)productIsExist:(NSString*)product;
//收藏插入
-(void)insertGoodsCollect:(NSArray*)array;

@end
